﻿using System;
using System.Collections.Generic;
using System.Text;

namespace designmodule.structuralmodule.Bridge
{
    public class Abstraction
    {
        protected Implementor Implementor { get; set; }

        public void SetImplementor(Implementor implementor)
        {
            Implementor = implementor;
        }

        public virtual void Operation()
        {
            Implementor.Operation();
        }
    }

    public class RefinedAbstraction : Abstraction
    {
        public override void Operation()
        {
            base.Operation();
        }
    }
}
